﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Windows.Storage.Streams
{
    public static class DataWriterExtension
    {
        public static async void Write(this DataWriter writer, string content)
        {
            writer.WriteUInt32(writer.MeasureString(content));
            writer.WriteString(content);
            await writer.StoreAsync();
        }
    }
}
